package com.jeomo.sys.starter.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jeomo.base.starter.entity.BaseEntity;

/**
 * <p>
 * 角色-菜单对照表
 * </p>
 *
 * @author jeomo
 * @since 2019-03-22
 */

@TableName("sys_role_permission")
public class RolePermission extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 角色id
     */
    private String roleCode;

    /**
     * 菜单ID
     */
    private String permissionCode;

    public RolePermission() {
        super();
    }

    public RolePermission(String roleCode, String permissionCode) {
        super();
        this.roleCode = roleCode;
        this.permissionCode = permissionCode;
    }

    public String getRoleCode() {
        return roleCode;
    }

    public void setRoleCode(String roleCode) {
        this.roleCode = roleCode;
    }

    public String getPermissionCode() {
        return permissionCode;
    }

    public void setPermissionCode(String permissionCode) {
        this.permissionCode = permissionCode;
    }

    @Override
    public Long getId() {
        return id;
    }

    @Override
    public void setId(Long id) {
        this.id = id;
    }
}
